package cn.tm.liu.mode.builder.demo1;

/**
 * @author Marvin.L
 * @description
 * @date 2022.04.09 11.31
 */
public class Main {
    public static void main(String[] args) {
        ComputerBuilder macBuilder = new MacBuilder();
        Director macDirector = new Director(macBuilder);
        macDirector.construct("英特尔主板", "Retina显示器");
        Computer mac = macBuilder.build();
        System.out.println(mac);

        ComputerBuilder dellBuilder = new DellBuilder();
        Director dellDirector = new Director(dellBuilder);
        dellDirector.construct("华硕主板", "Dell显示器");
        Computer dell = dellBuilder.build();
        System.out.println(dell);
    }
}
